package io.renren.modules.mail.dao;



import io.renren.modules.mail.pojo.Paper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;



import java.util.List;

/**
 * Created by Administrator on 2020/4/17.
 */
@Mapper
public interface PaperDao {
    //保存文件
    void insertPaper(Paper paper);
    //查询所有文件
    List<Paper> selectAllPaper(@Param("startIndex")Integer startIndex,
                                @Param("pageSize")Integer pageSize);
    //获取总行数
    int getRowCount();

    //删除
    void deletePapers(Paper paper);
    //根据ID删除
    void deletePaperById(@Param("id") Integer id);
}
